package com.suxin.config;

import com.suxin.service.loader.ParseFactory;
import org.springframework.beans.factory.config.ServiceLocatorFactoryBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Tang
 * @classname RootConfig
 * @description [  ]
 * @date 2021/6/25 14:35
 */
@Configuration
public class RootConfig {

    @Bean
    public ServiceLocatorFactoryBean factoryBean() {
        ServiceLocatorFactoryBean bean = new ServiceLocatorFactoryBean();
        bean.setServiceLocatorInterface(ParseFactory.class);
        return bean;
    }

}